import CONSTANT from '@/common/constants.js';
import http from '@/common/http.js';

export default {
  name: 'pointtoList',
  components: {},
  data () {
    return {
      siteId: '',
      studentId: '',
      classId: '',
      content: {signList: []}
    }
  },
  mounted () {
    console.log(global.siteId, global.studentId)
    var _this = this
    _this.siteId = window.sessionStorage.getItem('siteId')
    _this.studentId = window.sessionStorage.getItem('studentId')
    _this.classId = window.sessionStorage.getItem('classId')
    console.log(_this.classId)
    http.get(CONSTANT.SIGNLIST + '?siteId=' + _this.siteId + '&studentId=' + _this.studentId + '&clazzId=' + _this.classId, {}, (res) => {
      console.log(res)
      _this.content = res
    })
  },
  methods: {
    comeBack () {
      window.history.go(-1)
    }
  }
}
